package edu.chiansoft.service;

import edu.chiansoft.dao.PeopleDao;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
@Component(value = "peopleservice")
public
class PeopleServiceImp implements PeopleService{
    private PeopleDao peopleDao;
    private Log logger= LogFactory.getLog(PeopleServiceImp.class);
    @Override
    public
    void addPeople() {
        logger.info("PeopleServiceImp>>>addPeople   执行……");
        peopleDao.insertTable();
    }

    public
    PeopleDao getPeopleDao() {
        return peopleDao;
    }
    //@Autowired
    //@Qualifier(value = "peopledao")
    @Resource(name = "peopledao")
    public
    void setPeopleDao(PeopleDao peopleDao) {
        this.peopleDao = peopleDao;
    }
}

